org_path=`pwd`
if [ $# = 1 ] ; then
echo "cd to "$1
cd $1

rm -rf out_bmp
mkdir -p out_bmp
for var in *.jpg; do ffmpeg -i "$var" "out_bmp/${var%jpg}bmp"; done

cd out_bmp
if [ -f out_array ] ; then
echo "rm out array"
rm out_array
fi

if [ -f out_array_info ] ; then
echo "rm out array info"
rm out_array_info
fi

if [ -f out_array_enum ] ; then
echo "rm out array enum"
rm out_array_enum
fi
for var in *.bmp; do oledhex_good ${var} >> out_array; done
else
echo "pls input convert path"
fi
